import {
	defineConfig
} from 'vite'
import uni from '@dcloudio/vite-plugin-uni';
import addv from './src/index.js';

export default defineConfig({
	plugins: [uni(), addv(__dirname)],
	publicPath : "/h5/",
	server: {
		port:8000,
		proxy: {
			'/bsapi': {
				 target: 'https://039098045179.51vmr.com/', // 8000000601
				 // target: 'https://121.89.195.116', // 8000000601
				 changeOrigin: true,
				 rewrite: (path) => path.replace(/^\/bsapi/, '')
			}
		}
	}
});